package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.educational.entity.ClassQuestionnaireRecord;
import com.yuyou.fn.educational.vo.ClassQuestionSaveVo;
import com.yuyou.fn.educational.vo.QuestionnaireRecordDetail;
import com.yuyou.fn.educational.vo.QuestionnaireRecordQueryVo;
import com.yuyou.fn.educational.vo.QuestionnaireRecordSaveVo;
import com.yuyou.fn.platform.permission.DataPermission;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

import java.util.List;

/**
 *
 * ClassQuestionnaireRecord 表数据服务层接口
 *
 */
public interface IClassQuestionnaireRecordService extends ISuperService<ClassQuestionnaireRecord,Long> {



    void saveRecord(QuestionnaireRecordSaveVo questionnaireRecordSaveVo, List<ClassQuestionSaveVo> classQuestionSaveVoList);

    void invalidDetail(Long classQuestionnaireRecordId);

    ClassQuestionnaireRecord findEffectiveByClassId(Long classId);


 /*   Page<ClassExpandDetailVo> findClassExpandDetail(ClassExpandQueryVo classExpandQueryVo,CourseClassQueryVo courseClassQueryVo, DataPermission dataPermission , int pageNo, int pageSize);
*/

    Page<ClassQuestionnaireRecord> findRecordByQueryVo(DataPermission dataPermission,QuestionnaireRecordQueryVo questionnaireRecordQueryVo, int pageNo, int pageSize);

    QuestionnaireRecordDetail findDetailById(Long classQuestionnaireRecordId);

    SXSSFWorkbook exportQuestionnaireRecord(DataPermission dataPermission,QuestionnaireRecordQueryVo questionnaireRecordQueryVo);

    SXSSFWorkbook exportQuestionnaireRecordDetail(Long classQuestionnaireRecordId);
}